<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.wrap {
				margin:  0 auto ;
				width: 992px;
				height: 300px;
				background-color: #55A532;
				overflow: hidden; /*超出部分隐藏  溢出*/
			}
			ul {
				width: 3224px;
				height: 100%;
				list-style: none;
				margin: 0;
				padding: 0;
				background-color: #5F5750;
			}
			ul>li {
				width: 234px;
				height: 100%;
				float: left;
				background-color: #E5E5E5;
				margin-left: 14px;
			}
			/* .list li:first-child {
				border-top: 5px solid #FF0000;
			}
			.list li:last-child {
				border-top: 5px solid #00ff00;
			} */
			.list li:nth-child(4n) {
				border-top: 5px solid #000000;
				
			}
			.list li:nth-child(4n-1) {
				border-top: 5px solid red;
				
			}
			.list li:nth-child(4n-2) {
				border-top: 5px solid #ffff00;
				
			}
			.list li:nth-child(4n-3) {
				border-top: 5px solid #00ff00;
				
			}
		</style>	
	</head>
	<body>
		<div class="wrap">
			<ul class="list">
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
			</ul>
		</div>
	</body>
</html>
